package star.crust.cartspace.framework;

import star.core.util.geometry.DoubleXYZ;
import star.core.util.geometry.FloatXYZ;


public class CrtMeshVertex {
	private FloatXYZ position = null;
	private FloatXYZ normal = null;
	public CrtMeshVertex(float x,float y,float z, FloatXYZ normal) {	
		this.position= new FloatXYZ();
		this.position.x=x;
		this.position.y=y;
		this.position.z=z;
		this.normal  =normal;
	}
	
	public FloatXYZ position() {
		return position;
	}
	
	public FloatXYZ normal() {
		return normal;
	}

	public String toString() {
		return "position " + position.toString();
	}

	// Per Solid
	private DoubleXYZ dblposition = null;
	/**
	 * Costruttore oggetto AAbb
	 */
	public CrtMeshVertex(double x,double y,double z) {	
		this.dblposition= new DoubleXYZ(x,y,z);
		this.normal  = null;
	}

	public DoubleXYZ dblposition() {
		return dblposition;
	}

	public void setNormal(FloatXYZ point)
	{
		this.normal=point;
	}

	public void setPosition(DoubleXYZ point)
	{
		this.dblposition=point;
		
	}

	public void setPosition(FloatXYZ point)
	{
		this.position=point;
		
	}
	
}
